<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<table border="1">
    <thead>
    <th>id</th>
    <th>name</th>
    <th>sum</th>
    </thead>
    <tbody>
    <c:forEach items="${payments}" var="payment">
        <tr>
            <td>${payment.id}</td>
            <td>${payment.name}</td>
            <td>${payment.sum}</td>
        </tr>
    </c:forEach>
    </tbody>
</table>